<template>
<div>
  <h2>permission : {{role}}</h2>
  <component :is="role"></component>
<!--  <skeleton-->
<!--    type="custom"-->
<!--    :options="{ width: '100%', height: '100%' }"-->
<!--    :childrenOption="[-->
<!--    {type: 'circlecom', rules: 'a, d', active: true, options:{width: '100px'} },-->
<!--    {type: 'listcom', rules: 'b, c, e, f', active: true},-->
<!--    // {type: 'straightLine', active: true, rules: 'g, h, i'},-->
<!--]" />-->
</div>
</template>

<script>
import { mapGetters } from 'vuex'
export default {
  name: 'Dashboard',
  components:{
    admin:()=>import('./components/admin'),
    student:()=>import('./components/student'),
    teacher:()=>import('./components/teacher')
  },
  computed:{
    ...mapGetters([
      'role'
    ])
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
</style>
